package test_package;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by iryna on 3/29/14.
 */
public class ResultPage {

   private WebDriver driver;
   public ResultPage(WebDriver driver){
       this.driver = driver;

   }



    public String getFirstLink(){

        return driver.findElement(By.xpath("/html/body/div/div[5]/div/div/div[2]/div/div[4]/div/div/div/div/div/div/div[3]/a")).getText();
    }

}
